package com.knowswift.issues.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowswift.common.bean.message.po.Message;
import com.knowswift.common.bean.message.vo.MessageVO;
import com.knowswift.common.common.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    Page<MessageVO> getMessages(@Param("userId") String userId, Page<MessageVO> page);

    int read(@Param("userId") String userId);

    int getNewMessageCount(@Param("userId") String userId);
}